/**
 * Created by kangdaye on 16/6/5.
 */

//Main
app.controller('orderRefundAuditDialogCtr',["$scope","$rootScope","getData","viewData","orderListService", function($scope,$rootScope,getData,viewData,orderListService) {
    $scope.viewData = viewData;
    $scope.getData = angular.extend({
        agreed : 'true',
        refuseReason : ''
    },getData);

    $scope.submit = function(){
        orderListService.refundAudit($scope.getData,function(data){
            location.reload();
        });
    };

}]);
